Manage Requirement Attributes

When you import requirements, you select and assign columns. The names of these columns act in TPT as attribute names. There are two types of attributes: main attributes and additional attributes.

A requirement specification has always the following main attributes: ID, Text, URI, and Comment. Main attributes are displayed in a bold font in the Requirement details list in TPT. The document name and the document version can also be regarded as main attributes although they are not listed in the Requirement details.

Additional attributes are recognizable in TPT by their unformatted attribute name in the Requirement details, see also Test case attributes.

Main and additional requirement attributes in TPT

You can re-arrange both main and additional requirement attributes. You can also delete additional attributes. To do so, click on Manage requirement attributes and select an attribute. Click the up or down arrow to move the attribute up or down. Click Delete to remove an additional attribute.

The changes affect the presentation in the Requirement details section. Deleted requirement attributes are no longer available in the report; see Execution Configuration - Report Settings: Requirements.

Manage requirement attributes

You can access requirement attributes in a Script assesslet by using REQUIREMENTS.get("id"), for example: REQUIREMENTS.get("SPEC-4").getAttribute("default value"), see Script Assesslet - Requirement Attributes. See also TPT Assessment Module 'requirement'.